<template>
	<view class="content" v-if="pageShow==1">
		<view class="card-box" v-show="SecurityAuditTotalShow">
			<div class="main-box">
				<view class="main-title">
					{{SecurityAuditTotalName}}
				</view>
			</div>
			<view class="main-card">
				<view class="main-card-row1">
					<view class="row1-left" @click="openLogsSecurityAuditPage('SeLogCollectionTotal')">
						<span style="margin-bottom: 8rpx; font-weight: 700;">{{LogsSecurityAuditTotalData.LogCollectionTotal}}</span>
						<span class="row2-label">日志采集总数</span>
					</view>
					<view class="division-line"></view>
					<view class="row1-right">
						<view class="" @click="openLogsSecurityAuditPage('SeLogCollectionReceived')">
							<span style="color: #4CDA64; font-weight: 700;">{{LogsSecurityAuditTotalData.LogCollectionReceivedTotal}}</span>
							<span class="row2-label">已接收</span>
						</view>
						<view class="" @click="openLogsSecurityAuditPage('SeLogCollectionNotReceived')">
							<span style="color: #FFCC00;font-weight: 700;">{{LogsSecurityAuditTotalData.LogCollectionNotReceivedTotal}}</span>
							<span class="row2-label">未接收</span>
						</view>
						<view class=""  @click="openLogsSecurityAuditPage('SeLogCollectionReceiveds')">
							<span style="color: #4CDA64;font-weight: 700;">{{LogsSecurityAuditTotalData.LogCollectionRate}}</span>
							<span class="row2-label">接收率</span>
						</view>
					</view>
				</view>
				<view class="main-card-row2">
					<view class="row2-left" @click="openLogsSeOr4ADetourPage('SeLoginLogTotal')">
						<span style="margin-bottom: 8rpx; font-weight: 700;">{{DeviceSecurityAuditTotalData.LoginLogTotal}}</span>
						<span class="row2-label">登录日志总数</span>
					</view>
					<view class="division-line"></view>
					<view class="row2-right">
						<view style="margin-bottom: 13rpx;" class="" @click="openLogsSeOr4ADetourPage('SeBypassLoginLogTotal')">
							<span class="row2-label shallow-font">绕行登录日志数：</span>
							<span>{{DeviceSecurityAuditTotalData.BypassLoginLogTotal}}</span>
						</view>
						<view class="" @click="openLogsSeOr4ADetourPage('SeBypassLoginLogTotals')">
							<span class="row2-label shallow-font">总绕行率：</span>
							<span>{{DeviceSecurityAuditTotalData.DetourRate}}</span>
						</view>
					</view>
				</view>
				<view class="main-card-row3">
					<view class="row3-left"  @click="openWhiteSecurityAuditPage('SeWhitelistTotal')">
						<span style="margin-bottom: 8rpx; font-weight: 700;">{{WhiteSecurityAuditTotalData.WhitelistTotal}}</span>
						<span class="row2-label">程序白名单总数</span>
					</view>
					<view class="division-line"></view>
					<view class="row3-right">
						<view style="margin-bottom: 13rpx;" @click="openWhiteSecurityAuditPage('SeMarchTtoal')" >
							<span class="row2-label shallow-font">三月前接入总数：</span>
							<span>{{WhiteSecurityAuditTotalData.MarchTtoal}}</span>
						</view>
						<view style="margin-bottom: 13rpx;" @click="openWhiteSecurityAuditPage('SeMarchHitCount')">
							<span class="row2-label shallow-font">三个月前接入未命中数：</span>
							<span style="color: #EB7C21;">{{WhiteSecurityAuditTotalData.MarchHitCount}}</span>
						</view>
						<view class="" @click="openWhiteSecurityAuditPage('SeMarchHitRate')">
							<span class="row2-label shallow-font">命中率：</span>
							<span style="color: #4CDA64;">{{WhiteSecurityAuditTotalData.HitRate}}</span>
						</view>
					</view>
				</view>
			</view>
		</view>

		<view class="card-box" v-show="DepIdSecurityAuditTotalShow">
			<div class="main-box">
				<view class="main-title">
					{{DepIdSecurityAuditTotalName}}
				</view>
			</div>
			<view class="main-content">
				<view class="card" v-for="(item, index) in DepIdSecurityAuditTotalData" :key="index">
					<view class="dept-name">
						<img style="width: 64rpx; margin-right: 30rpx;" src="@/static/deptIcon4.png" alt="" />
						<view style="padding-top: 7rpx;" class="">{{item.DepName}}</view>
					</view>
					<view class="admin-card-content">
						<view class="row1">
							<view class="row1-left" @click="openLogsSecurityAuditPage('DepsLogCollection',item.depId)">
								<span>{{item.LogCollectionTotal}}</span>
								<span>日志采集总数</span>
							</view>
							<view class="row1-right">
								<view class="" @click="openLogsSecurityAuditPage('DepsLogCollectionReceived',item.depId)">
									<span style="color: #0CB480;">{{item.LogCollectionReceivedTotal}}</span>
									<span>已接收</span>
								</view>
								<view class="" @click="openLogsSecurityAuditPage('DepsLogCollectionNotReceived',item.depId)">
									<span style="color: #FF9501;">{{item.LogCollectionNotReceivedTotal}}</span>
									<span>未接收</span>
								</view>
								<view class="" @click="openLogsSecurityAuditPage('DepsLogCollectionReceiveds',item.depId)">
									<span style="color: #0CB480;">{{item.LogCollectionRate}}</span>
									<span>接收率</span>
								</view>
							</view>
						</view>
						<view class="row2">
							<view class="row2-left" @click="openLogsSeOr4ADetourPage('DepsLoginLogTotal',item.depId)">
								<span>{{item.LoginLogTotal}}</span>
								<span>登录日志总数</span>
							</view>
							<view class="row2-right">
								<view style="margin-bottom: 13rpx;" class="" @click="openLogsSeOr4ADetourPage('DepsLoginBypassLoginLogTotal',item.depId)">
									<span>绕行登录日志数：</span>
									<span>{{item.BypassLoginLogTotal}}</span>
								</view>
								<view class="" @click="openLogsSeOr4ADetourPage('DepsLoginBypassLoginLogTotals',item.depId)">
									<span>总绕行率：</span>
									<span>{{item.DetourRate}}</span>
								</view>
							</view>
						</view>
						<view class="row3">
							<view class="row3-left" @click="openWhiteSecurityAuditPage('DepsWhitelistTotal',item.depId)">
								<span>{{item.WhitelistTotal}}</span>
								<span>程序白名单总数</span>
							</view>
							<view class="row3-right">
								<view style="margin-bottom: 13rpx;" class="" @click="openWhiteSecurityAuditPage('DepsMarchTtoal',item.depId)">
									<span>三月前接入总数：</span>
									<span>{{item.MarchTtoal}}</span>
								</view>
								<view style="margin-bottom: 13rpx;" class="" @click="openWhiteSecurityAuditPage('DepsMarchHitCount',item.depId)">
									<span>三个月前接入未命中数：</span>
									<span style="color: #EB7C21;">{{item.MarchHitCount}}</span>
								</view>
								<view class="" @click="openWhiteSecurityAuditPage('DepsMarchHitRate',item.depId)">
									<span>命中率：</span>
									<span style="color: #0CB480;">{{item.HitRate}}</span>
								</view>
							</view>
						</view>
					</view>
				</view>
			</view>
		</view>
		<view class="card-box" v-show="DepSecurityAuditTotalShow">
			<div class="main-box">
				<view class="main-title">
					{{DepSecurityAuditTotalName}}
				</view>
			</div>
			<view class="main-card">
				<view class="card-top">
					<view class="card-title">
						日志采集
					</view>
					<view class="card-content">
						<view class="chart-box">
							<view style="width: 100%; height: 200px" @click="openLogsSecurityAuditPage('DepLogCollection')"><l-echart ref="chartRef1" ></l-echart>
							</view>
							<view class="chart-tips">
								<span class="tips-num" style="color: #00A669;" @click="openLogsSecurityAuditPage('DepLogCollectionReceived')">{{DepSecurityAuditTotalData.LogCollectionReceivedTotal}} / {{DepSecurityAuditTotalData.LogCollectionRate}} </span>
								<span style="margin-bottom: 20rpx;">已接收/接收率</span>
								<span class="tips-num" style="color: #EB7C21;" @click="openLogsSecurityAuditPage('DepLogCollectionNotReceived')">{{DepSecurityAuditTotalData.LogCollectionNotReceivedTotal}}</span>
								<span>未接收</span>
							</view>
						</view>
					</view>
				</view>
				<view class="card">
					<view class="card-title">
						4A绕行率
					</view>
					<view class="card-content">
						<view class="felx-box">
							<view class="" @click="openLogsSeOr4ADetourPage('DepLoginLogTotal')">
								<span>{{DepSecurityAuditTotalData.LoginLogTotal}}</span>
								<span>登录日志总数</span>
							</view>
							<view class="felx-edge">
								<view @click="openLogsSeOr4ADetourPage('DepLoginBypassLoginLogTotal')">
									<span>绕行登录日志数：</span>
									<span style="color: #1B9CFF;">{{DepSecurityAuditTotalData.BypassLoginLogTotal}}</span>
								</view>
								<view @click="openLogsSeOr4ADetourPage('DepLoginBypassLoginLogTotals')">
									<span>总绕行率：</span>
									<span style="color: #1B9CFF;">{{DepSecurityAuditTotalData.DetourRate}}</span>
								</view>
							</view>
						</view>
					</view>
				</view>
				<view class="card">
					<view class="card-title">
						程序白名单命中率
					</view>
					<view class="card-content">
						<view class="felx-box">
							<view class=""  @click="openWhiteSecurityAuditPage('DepWhitelistTotal')">
								<span>{{DepSecurityAuditTotalData.WhitelistTotal}}</span>
								<span>程序白名单总数</span>
							</view>
							<view class="felx-edge">
								<view  @click="openWhiteSecurityAuditPage('DepMarchTtoal')">
									<span>三个月接入总数：</span>
									<span style="color: #5F6475;">{{DepSecurityAuditTotalData.MarchTtoal}}</span>
								</view>
								<view @click="openWhiteSecurityAuditPage('DepMarchHitCount')">
									<span>三个月前接入未命中数：</span>
									<span style="color: #EB7C21;">{{DepSecurityAuditTotalData.MarchHitCount}}</span>
								</view>
								<view @click="openWhiteSecurityAuditPage('DepMarchHitRate')">
									<span>命中率：</span>
									<span style="color: #0CB480;">{{DepSecurityAuditTotalData.HitRate}}</span>
								</view>
							</view>
						</view>
					</view>
				</view>
			</view>
		</view>
		<view class="card-box" v-show="UserSecurityAuditTotalShow">
			<div class="main-box">
				<view class="main-title">
					{{UserSecurityAuditTotalName}}
				</view>
			</div>
			<view class="main-card">
				<view class="card-top">
					<view class="card-title">
						日志采集
					</view>
					<view class="card-content">
						<view class="chart-box">
							<view style="width: 100%; height: 200px" @click="openLogsSecurityAuditPage('UserLogCollection')"><l-echart ref="chartRef2"></l-echart>
							</view>
							<view class="chart-tips">
								<span class="tips-num" style="color: #00A669;" @click="openLogsSecurityAuditPage('UserLogCollectionReceived')">{{UserSecurityAuditTotalData.LogCollectionReceivedTotal}} / {{UserSecurityAuditTotalData.LogCollectionRate}} </span>
								<span style="margin-bottom: 20rpx;">已接收/接收率</span>
								<span class="tips-num" style="color: #EB7C21;" @click="openLogsSecurityAuditPage('UserLogCollectionNotReceived')">{{UserSecurityAuditTotalData.LogCollectionNotReceivedTotal}}</span>
								<span>未接收</span>
							</view>
						</view>
					</view>
				</view>
				<view class="card">
					<view class="card-title">
						4A绕行率
					</view>
					<view class="card-content">
						<view class="felx-box">
							<view class="" @click="openLogsSeOr4ADetourPage('UserLoginLogTotal')">
								<span>{{UserSecurityAuditTotalData.LoginLogTotal}}</span>
								<span>登录日志总数</span>
							</view>
							<view class="felx-edge">
								<view @click="openLogsSeOr4ADetourPage('UserLoginBypassLoginLogTotal')">
									<span>绕行登录日志数：</span>
									<span style="color: #1B9CFF;">{{UserSecurityAuditTotalData.BypassLoginLogTotal}}</span>
								</view>
								<view @click="openLogsSeOr4ADetourPage('UserLoginBypassLoginLogTotals')">
									<span>总绕行率：</span>
									<span style="color: #1B9CFF;">{{UserSecurityAuditTotalData.DetourRate}}</span>
								</view>
							</view>
						</view>
					</view>
				</view>
				<view class="card">
					<view class="card-title">
						程序白名单命中率
					</view>
					<view class="card-content">
						<view class="felx-box">
							<view class="" @click="openWhiteSecurityAuditPage('UserWhitelistTotal')">
								<span>{{UserSecurityAuditTotalData.WhitelistTotal}}</span>
								<span>程序白名单总数</span>
							</view>
							<view class="felx-edge">
								<view @click="openWhiteSecurityAuditPage('UserMarchTtoal')">
									<span>三个月接入总数：</span>
									<span style="color: #5F6475;">{{UserSecurityAuditTotalData.MarchTtoal}}</span>
								</view>
								<view @click="openWhiteSecurityAuditPage('UserMarchHitCount')">
									<span>三个月前接入未命中数：</span>
									<span style="color: #EB7C21;">{{UserSecurityAuditTotalData.MarchHitCount}}</span>
								</view>
								<view @click="openWhiteSecurityAuditPage('UserMarchHitRate')">
									<span>命中率：</span>
									<span style="color: #0CB480;">{{UserSecurityAuditTotalData.HitRate}}</span>
								</view>
							</view>
						</view>
					</view>
				</view>
			</view>
		</view>		
	</view>
	<u-loading v-else-if="pageShow==2" class="loading" size="80" mode="flower" :show="loading" color="primar"></u-loading>
	<u-empty  v-else-if="pageShow==0" style="margin-top: 100px;" iconSize='200' textSize='18' mode="data" icon="@/static/empty.png" text='暂无数据'></u-empty>
</template>

<script>
	import * as echarts from '@/uni_modules/lime-echart/static/echarts.min'
	export default {
		data() {
			return {
				pageShow:0,
				loading:false,
				SecurityAuditTotalShow:false,
				DepIdSecurityAuditTotalShow:false,
				DepSecurityAuditTotalShow:false,
				UserSecurityAuditTotalShow:false,
				SecurityAuditTotalName:'',
				DepIdSecurityAuditTotalName:'',
				DepSecurityAuditTotalName:'',
				UserSecurityAuditTotalName:'',
				option1: {},
				option2: {},
				LogsSecurityAuditTotalData:{},
				DeviceSecurityAuditTotalData:{},
				WhiteSecurityAuditTotalData:{},
				DepIdSecurityAuditTotalData:[],
				DepSecurityAuditTotalData:{},
				UserSecurityAuditTotalData:{},
				title: '数据统计',
			};
		},
		created () {
		     this.getpermission()
		},
		activated() {
			this.changeTitle('数据统计')
		},
		// 组件能被调用必须是组件的节点已经被渲染到页面上
		methods: {
			changeTitle(newTitle) {
			  this.title = newTitle;
			  uni.setNavigationBarTitle({
				title: this.title
			  });
			},
			// 获取当前用户标签权限
			async getpermission() {
				let that=this
				let data = await this.$api.getpermission(); //已经封装好的api
				if (data.Code == 200) {
					// this.loading = false
					this.permissionData=data.Data
					console.log(this.permissionData,'permissionData888')
					that.permissionData.forEach((e, index) => {
						  if (e.PermissionName == '安全审计') {
							that.pageShow=true
						  }
						  if(e.Children&&e.Children.length>0){
							  e.Children.forEach((item, index) => {
								  if(item.PermissionName=="管理员-安全审计汇总"){									  
										  that.SecurityAuditTotalName=item.PermissionName
                                          that.getLogsSecurityAuditTotal()
										  that.getDeviceSecurityAuditTotal()
										  that.getWhiteSecurityAuditTotal()
								  }else if(item.PermissionName=="管理员-部门安全审计明细"){
										  that.DepIdSecurityAuditTotalName=item.PermissionName
	                                      that.getDepIdSecurityAuditTotal()
								  }else if(item.PermissionName=="部门管理员-安全审计汇总"){
										  that.DepSecurityAuditTotalName=item.PermissionName
										  that.getDepSecurityAuditTotal()
										  that.DepSecurityAuditTotalShow=true	                                         
								  }else if(item.PermissionName=="个人-安全审计汇总"){
										  that.UserSecurityAuditTotalName=item.PermissionName
										  that.getUserSecurityAuditTotal()
										  that.UserSecurityAuditTotalShow=true			
								  }
							  })							  
						  }
						})	
				} else {
					uni.showToast({
						title: '请求失败!',
						icon: 'none',
						duration: 5000,
						mask: true,
					});
				}
			},
			openLogsSecurityAuditPage(type,id) {//获取日志采集分页
				this.$router.push({
				   path:'/pages/LogsSecurityAuditPage/index',query:{
				   type: type,
				   DeptID:id
				}});
			},
			openLogsSeOr4ADetourPage(type,id) {//获取4A绕行率分页
				this.$router.push({
				   path:'/pages/LogsSeOr4ADetourPage/index',query:{
				   type: type,
				   DeptID:id
				}});
			},
			openWhiteSecurityAuditPage(type,id) {//获取白名单分页
				this.$router.push({
				   path:'/pages/WhiteSecurityAuditPage/index',query:{
				   type: type,
				   DeptID:id
				}});
			},
			async getLogsSecurityAuditTotal() {//管理员获取日志采集了统计
			    this.loading=true
				let data = await this.$api.getLogsSecurityAuditTotal(); //已经封装好的api
				if (data.Code == 200) {
					// this.loading = false
					this.LogsSecurityAuditTotalData=data.Data	
					this.pageShow=1
				} else {
					uni.showToast({
						title: data.Message,
						icon: 'none',
						duration: 5000,
						mask: true,
					});
				}
			},
			async getDeviceSecurityAuditTotal() {//管理员获取4A绕行率统计
			    this.loading=true
				let data = await this.$api.getDeviceSecurityAuditTotal(); //已经封装好的api
				if (data.Code == 200) {
					// this.loading = false
					this.DeviceSecurityAuditTotalData=data.Data	
					this.pageShow=1
				} else {
					uni.showToast({
						title: data.Message,
						icon: 'none',
						duration: 5000,
						mask: true,
					});
				}
			},
			async getWhiteSecurityAuditTotal() {//管理员获取白名单统计
			    this.loading=true
				let data = await this.$api.getWhiteSecurityAuditTotal(); //已经封装好的api
				if (data.Code == 200) {
					// this.loading = false
					this.WhiteSecurityAuditTotalData=data.Data	
					this.SecurityAuditTotalShow=true
					this.pageShow=1
				} else {
					uni.showToast({
						title: data.Message,
						icon: 'none',
						duration: 5000,
						mask: true,
					});
				}
			},
			async getDepIdSecurityAuditTotal() {//管理员获取部门统计
			    this.loading=true
				let data = await this.$api.getDepIdSecurityAuditTotal(); //已经封装好的api
				if (data.Code == 200) {
					// this.loading = false
					this.DepIdSecurityAuditTotalData=data.Data
					this.DepIdSecurityAuditTotalShow=true
					this.pageShow=1
				} else {
					uni.showToast({
						title: data.Message,
						icon: 'none',
						duration: 5000,
						mask: true,
					});
				}
			},
			async getDepSecurityAuditTotal() {//部门统计
			    this.loading=true
				let data = await this.$api.getDepSecurityAuditTotal(); //已经封装好的api
				if (data.Code == 200) {
					// this.loading = false
					this.DepSecurityAuditTotalData=data.Data
						console.log(this.DepSecurityAuditTotalData,'this.DepSecurityAuditTotalData999')
					this.getOption1({
						data1: this.DepSecurityAuditTotalData.LogCollectionReceivedTotal,
						data2: this.DepSecurityAuditTotalData.LogCollectionNotReceivedTotal,
						total: this.DepSecurityAuditTotalData.LogCollectionTotal,
					})
					const chart1 = await this.$refs.chartRef1.init(echarts);
					chart1.setOption(this.option1)
					this.pageShow=1
				} else {
					uni.showToast({
						title: data.Message,
						icon: 'none',
						duration: 5000,
						mask: true,
					});
				}
			},
			async getUserSecurityAuditTotal() {//个人统计
			    this.loading=true
				let data = await this.$api.getUserSecurityAuditTotal(); //已经封装好的api
				if (data.Code == 200) {
					// this.loading = false
					this.UserSecurityAuditTotalData=data.Data	
					console.log(this.UserSecurityAuditTotalData,'this.UserSecurityAuditTotalData999')
					this.getOption2({
	                    data1: this.UserSecurityAuditTotalData.LogCollectionReceivedTotal,
						data2: this.UserSecurityAuditTotalData.LogCollectionNotReceivedTotal,
						total: this.UserSecurityAuditTotalData.LogCollectionTotal,
					})
					const chart2 = await this.$refs.chartRef2.init(echarts);
					chart2.setOption(this.option2)
					this.pageShow=1
				} else {
					uni.showToast({
						title: data.Message,
						icon: 'none',
						duration: 5000,
						mask: true,
					});
				}
			},
			// async init() {
			// 	// chart 图表实例不能存在data里
			// 	console.log(this.$utils.commafy(999999.33));
			// 	this.getOption({
			// 		data1: 15538,
			// 		data2: 1404,
			// 		total: 6125,
			// 	})
			// 	const chart1 = await this.$refs.chartRef1.init(echarts);
			// 	chart1.setOption(this.option)
			// 	const chart2 = await this.$refs.chartRef2.init(echarts);
			// 	chart2.setOption(this.option)
			// },
			getOption1(data) {
				let seriesData = data.total ? [{
						value: data.data1,
						name: '已接受'
					},
					{
						value: data.data2,
						name: '未接受'
					},
				] : null
				this.option1 = {
					color: ['#00A669', '#EB7C21'],
					series: [{
							type: 'pie',
							connectNulls: false,
							radius: ['60%', '75%'],
							label: {
								show: false
							},
							data: seriesData
						},
						{
							type: 'pie',
							radius: ['60%', '75%'],
							label: {
								normal: {
									show: true,
									position: 'center',
									formatter: (params) => {
										return [
											`{a|${this.$utils.commafy(data.total)}}`,
											`{b|采集总数}`
										].join('\n');
									},
									rich: {
										a: {
											fontSize: 24,
											color: '#5F6475',
											fontWeight: 'bold',
											padding: [0, 0, 5, 0]
										},
										b: {
											fontSize: 12,
											color: '#555'
										}
									}
								}
							},
							data: [{
								value: 1,
								itemStyle: {
									color: 'transparent'
								}
							}]
						}
					]
			
				}
			},
			getOption2(data) {
				let seriesData = data.total ? [{
						value: data.data1,
						name: '已接受'
					},
					{
						value: data.data2,
						name: '未接受'
					},
				] : null
				this.option2 = {
					color: ['#00A669', '#EB7C21'],
					series: [{
							type: 'pie',
							connectNulls: false,
							radius: ['60%', '75%'],
							label: {
								show: false
							},
							data: seriesData
						},
						{
							type: 'pie',
							radius: ['60%', '75%'],
							label: {
								normal: {
									show: true,
									position: 'center',
									formatter: (params) => {
										return [
											`{a|${this.$utils.commafy(data.total)}}`,
											`{b|采集总数}`
										].join('\n');
									},
									rich: {
										a: {
											fontSize: 24,
											color: '#5F6475',
											fontWeight: 'bold',
											padding: [0, 0, 5, 0]
										},
										b: {
											fontSize: 12,
											color: '#555'
										}
									}
								}
							},
							data: [{
								value: 1,
								itemStyle: {
									color: 'transparent'
								}
							}]
						}
					]
			
				}
			}
		}
	}
</script>

<style lang="scss" scoped>
	.main-card-row1 {
		border-radius: 16rpx 16rpx 0 0;
		background: linear-gradient(270deg, #1078DE 0%, #43A2EB 100%);
		display: flex;
	}

	.main-card-row2 {
		background: linear-gradient(270deg, #1078DE 0%, #5FBAF2 100%);
		display: flex;
	}

	.main-card-row3 {
		border-radius: 0 0 16rpx 16rpx;
		box-shadow: 0rpx 30rpx 20rpx 1rpx rgba(51, 149, 231, 0.26);
		background: linear-gradient(270deg, #1078DE 0%, #43A2EB 100%);
		display: flex;
	}

	.main-card {

		.row1-left,
		.row2-left,
		.row3-left {
			padding: 34rpx 0 31rpx 0;
			flex: 1;
			display: flex;
			flex-direction: column;
			align-items: center;
			justify-content: center;
		}

		.row1-right {
			flex: 2;
			display: flex;
			align-items: center;

			&>view {
				flex: 1;
				display: flex;
				flex-direction: column;
				align-items: center;
			}
		}

		.row2-right,
		.row3-right {
			flex: 2;
			padding-top: 32rpx;
			padding-bottom: 28rpx;

			&>view {
				display: flex;
				justify-content: space-between;
				margin-left: 42rpx;
				margin-right: 42rpx;


				&>span {
					// &:first-child {
					// 	width: 250rpx;
					// }

					&:last-child {
						font-weight: 700;
					}
				}
			}
		}

		.row2-label {
			font-size: 24rpx;

		}
	}


	.shallow-font {
		color: rgba(255, 255, 255, .8);
	}

	.dept-name {
		font-size: 34rpx;
		display: flex;
		padding: 6px 0 0px 12px;
	}

	.admin-card-content {
		padding: 0 20rpx 20rpx 20rpx;

		&>view {
			display: flex;
			padding: 20rpx 0;
			background: #F4F6F8;
			border-radius: 8rpx 8rpx 8rpx 8rpx;
			margin-bottom: 11rpx;
			color: #5F6475;

			&>view {
				&:first-child {
					display: flex;
					flex-direction: column;
					align-items: center;
					flex: 1;
					justify-content: center;

					&>span:first-child {
						font-weight: 700;
						margin-bottom: 5rpx;
					}

					&>span:last-child {
						font-size: 24rpx;
					}
				}

				&:last-child {
					flex: 2;

				}


			}

			.row1-right {
				display: flex;

				&>view {
					flex: 1;
					display: flex;
					flex-direction: column;
					align-items: center;

					&>span:first-child {
						font-weight: 700;
						margin-bottom: 5rpx;
					}

					&>span:last-child {
						font-size: 24rpx;
					}
				}
			}
			.row2-right,.row3-right {
				
				&>view{
					margin: 0 22rpx;
					display: flex;
					justify-content: space-between;
					&>span:first-child {
						font-size: 24rpx;
					}
					
					&>span:last-child {
						font-weight: 700;
					}
				}
			}
		}
	}
	.card-box {
	    margin: 12px;
	    background: white;
	    padding: 10px;
	    border-radius: 5px;
	    box-shadow: 0px 0px 3px 1px rgba(36, 111, 161, 0.06);
	}
	.main-card{
		margin: 10px 0;
	}
	.card-title{
		color: #303133;
	}
	.card-top{
		margin: 0;
	}
	.card-group {
	    display: flex;
	}
	.card-group .card {
	    flex: 1;
	}
	.card{
		margin: 10px 0  !important;
	}
	.chart-tips{
	    display: flex;
	    flex-direction: row;
	    justify-content: space-around;
	    width: 100%;
	    height: 71px;
	    margin-bottom: 35px;
	}
	.chart-tips > span {
	    display: flex;
	    flex-direction: column;
	    justify-content: space-evenly;
	}
	.row2-left > uni-view > span:first-child {
	    line-height: 24px;
	}
	.row2-right > uni-view > span:first-child {
	    line-height: 24px;
	}
	.main-content{
		margin: 0 !important;
	}
	 uni-page-body {
	    font-size: 16px!important;
	}
	.chart-tips{
	    display: flex;
	    flex-direction: column;
	    justify-content:space-between;
	    color: #888;
	    font-size: 13px;
		margin-top: 50px;
	}
	.tips-num{
	    margin-bottom: 5px;
	}
	.felx-edge > uni-view {
	    width: 100%;
	    display: flex;
	    justify-content: space-between;
	    padding: 0 11px;
	    margin-bottom: 5px;
	}
	.felx-edge > uni-view span:last-child {
	    font-weight: 700;
	}
	.felx-box > uni-view {
	    flex: 1;
	    display: flex;
	    flex-direction: column;
	    align-items: center;
	    justify-content: center;
	    padding: 27px 0;
	    font-size: 16px;
	    color: #888;
	    border-right: 1px solid #F6F6F6;
	}
	.felx-edge {
	    justify-content: space-between !important;
	    flex: 1.5 !important;
	}
</style>